<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div class="breadcrumbs" id="breadcrumbs">
	<script type="text/javascript">
		try {
			ace.settings.check('breadcrumbs', 'fixed')
		} catch (e) {
		} 
	</script>

	<ul class="breadcrumb" style="height: 10px;padding: 8px 0px;">
		<li><i class="icon-home home-icon"></i> <a href="#">首页</a></li>
		<li class="active">控制台</li>
	</ul>
	<!-- .breadcrumb -->

	<div class="nav-search" id="nav-search">
		<form class="form-search">
			<span class="input-icon"> <input type="text"
				placeholder="Search ..." class="nav-search-input"
				id="nav-search-input" autocomplete="off" /> <i
				class="icon-search nav-search-icon" style="margin-left: 8px"></i>
			</span>
		</form>
	</div>
	<!-- #nav-search -->
</div>

<script type="text/javascript">
	try {
		ace.settings.check('sidebar', 'collapsed')
	} catch (e) {
	}
//console.log(document.title);
	var localhref = document.location.href;
	 
	var arrUrl = localhref.split("//");
	var start = arrUrl[1].lastIndexOf("/");
	var Needstr = arrUrl[1].substring(start+1);
	if (Needstr.indexOf("?") != -1) {
		Needstr = Needstr.split("?")[0];
	};
	var activeele = $("[href='" + Needstr + "']").parent();
	activeele.addClass("active");
	activeele.siblings().removeClass("active");
	activeele.parent().parent().addClass("active");
	activeele.parent().parent().addClass("open");
	activeele.parent().parent().siblings().removeClass("active");
	activeele.parent().parent().siblings().removeClass("open");
	var strCurrent = activeele.find("a").text().trim();
	if (activeele.parent().find("ul").length == 0) {
		var strPostion = activeele.parent().parent().find(".menu-text").text()
				.trim();
		if(strPostion==""){
			strPostion="控制台";
		}
		$(".breadcrumb li").eq(0).find("a").text(strPostion);
	}
	if(strCurrent==""){
		strCurrent="首页";
	}
	document.title=strCurrent;
	$(".breadcrumb li").eq(1).text(strCurrent);
</script>